curl examples

curl -H "Content-Type: application/json" -H "token":"chenshi" -d '{"site":"chenshi.net"}' https://chenshi.net -w '\n'

curl -X POST "http://spark:8080/app/kill/?id=${appId}&terminate=true"

curl -o /dev/null -s -w "%{http_code}\n" https://chenshi.net

curl -XPUT -u "chenshi:chenshi.net" -H "Content-Type: application/json" -d '{"index":{"number_of_replicas":0}}' http://localhost:9200/_settings